switch: Use the right state when querying padding
authorBenjamin Otte <otte@redhat.com>
Thu, 22 Oct 2015 16:42:56 +0000 (18:42 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Oct 2015 16:43:55 +0000 (18:43 +0200)
commit1f1c7547da93e785f5e19564a468e8a404e9bc9a
treee5c60297207ef73bacb4554cb5d3ff697daab61b
parentf703ea65995f4c8bd5c7e1c554a36d5ca835067d
switch: Use the right state when querying padding

We were using the state of the widget node, not the state of the slider
node.

This caused layout loops due to invalidations.
gtk/gtkswitch.c